Local File as Sensor
use a local file or SAMBA share hooked into Home Assistant to read as a sensor
Allow external directory
Although this share file is connected into HA's filesystem, it still needs to be allowed through configuration. I've allowed the whole /share
folder, but you may piece meal the allowed nested directories
configuration.yaml
homeassistant:
allowlist_external_dirs:
- "/share"
To load the new config either
- Developer Tools > YAML > Location & Customization Button
- Developer Tools > SERVICES >
homeassistant.reload_core_config
Service - Neither of those worked for me. I just restarted the whole damn thing